package org.wcms.surrounded.persistence;

import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.google.inject.name.Named;
import com.googlecode.objectify.ObjectifyFactory;

@Singleton
public class SurroundedRegistry {

    @SuppressWarnings("rawtypes")
    @Inject
    public SurroundedRegistry(ObjectifyFactory factory, @Named("entities") Class[] entities) {
        for (Class<?> entity : entities) {
            factory.register(entity);
        }
    }
    
}
